package com.tencent.wxcloudrun.service;

import com.alibaba.fastjson.JSONObject;
import com.tencent.wxcloudrun.config.SuccessResult;

import java.util.Map;

public interface WxService {
    // 获取用户session_key 和 openId
    JSONObject getSessionId (String code);

    // 解密用户信息
    SuccessResult getUserInfo (String code, String encryptedData, String iv);

    SuccessResult wxLogin (Map<String, Object> wxInfo);
}
